package ai.people.netmon.telegram.service;

import ai.people.netmon.framework.domain.telegram.entity.AnalysisDataUser;
import ai.people.netmon.framework.domain.telegram.entity.Channels;
import ai.people.netmon.framework.domain.telegram.vo.channels.AnalyzedChannels;
import ai.people.netmon.framework.domain.telegram.vo.channels.ChatMessage;
import ai.people.netmon.framework.domain.telegram.vo.channels.SimilarChannels;
import ai.people.netmon.framework.domain.telegram.vo.channels.UserMember;
import ai.people.netmon.framework.model.response.PageResponse;
import ai.people.netmon.telegram.domain.request.AnalyzedListRequest;
import ai.people.netmon.telegram.domain.request.channels.AccountMemberRequest;
import ai.people.netmon.telegram.domain.request.channels.ChartMessageRequest;
import ai.people.netmon.telegram.domain.request.channels.KeyGoalsRequest;
import ai.people.netmon.telegram.domain.request.channels.SimilarChannelsRequest;

import java.util.List;
import java.util.Set;

/**
 * 群组分析服务
 *
 * @author yuanqinglong
 * @date 2022/1/11 19:27
 */
public interface ChannelsAnalysisService {


    /**
     * 获取群组信息
     *
     * @param id id
     * @return {@link Channels}
     */
    Channels getChannels(Long id);


    /**
     * 加入分析
     *
     * @param analysisDataUser 分析数据用户
     */
    void joinAnalysis(AnalysisDataUser analysisDataUser);


    /**
     * 成员列表
     *
     * @param accountMemberRequest 群组成员参数
     * @return {@link PageResponse}<{@link UserMember}>
     */
    PageResponse<UserMember> memberList(AccountMemberRequest accountMemberRequest);

    /**
     * 关键目标
     *
     * @param keyGoalsParameter 关键目标参数
     * @return {@link Object}
     */
    Object keyGoals(KeyGoalsRequest keyGoalsParameter);

    /**
     * 聊天信息
     *
     * @param chartMessageRequest 聊天信息参数
     * @return {@link PageResponse}<{@link ChatMessage}>
     */
    PageResponse<ChatMessage> chatMessage(ChartMessageRequest chartMessageRequest);

    /**
     * 同类群组
     *
     * @param similarChannelsRequest 同类群组参数
     * @return {@link List}<{@link SimilarChannels}>
     */
    List<SimilarChannels> similarChannels(SimilarChannelsRequest similarChannelsRequest);


    /**
     * 已添加分析群组
     *
     * @param analyzedListRequest 参数
     * @return {@link List}<{@link AnalyzedChannels}>
     */
    List<AnalyzedChannels> analyzedChannels(AnalyzedListRequest analyzedListRequest);


    /**
     * 已添加分析群组id
     *
     * @param analyzedListRequest 分析列表请求
     * @return {@link Set}<{@link String}>
     */
    Set<String> analyzedChannelsIdSet(AnalyzedListRequest analyzedListRequest);


    /**
     * 添加群组
     *
     * @param urlOrId urlOrId
     */
    void addChannels(String urlOrId);
}
